package com.example.user.myfirstapp.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.example.user.myfirstapp.R;
import com.example.user.myfirstapp.activity.LoginActivity;

/**
 * Created by user on 2016/5/18.
 */
public class UserFragment extends loginBaseFragment {
    private Button loginBtn;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.flg_user,container,false);
        loginBtn = (Button) view.findViewById(R.id.user_login_btn);
        loginBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), LoginActivity.class);
                startActivity(intent);
                //从下往上弹出
                getActivity().overridePendingTransition(R.animator.slide_bottom_in,0);
            }
        });
        return view;
    }
}
